package com.zhao.dota.vo;

import cn.hutool.core.bean.BeanUtil;
import com.zhao.dota.model.MatchPlayerAbility;
import com.zhao.dota.util.SteamUtil;
import lombok.Data;

@Data
public class MatchPlayerAbilityVo extends MatchPlayerAbility {

    private String icon;

    public MatchPlayerAbilityVo(MatchPlayerAbility matchPlayerAbility) {
        BeanUtil.copyProperties(matchPlayerAbility, this);
        this.icon = SteamUtil.getIconUrlByAbilityName(matchPlayerAbility.getName());
    }

}
